﻿using LuShanTea.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LuShanTea.IService
{
    public interface IRoleService : IServiceSupport
    {
        long AddNew(string name);

        void Update(long roleId, string name);

        void MarkDeleted(long roleId);

        RoleDTO[] GetByAdminUserId(long adminUserId);

        void AddRole(long adminUserId, long[] roleIds);

        RoleDTO[] GetAll();

        RoleDTO GetById(long roleId);

        RoleDTO GetByName(string roleName);

        void UpdateRoles(long adminUserId, long[] roleIds);
    }
}
